'use strict'

module.exports = {
    id: [
        { required: true, message: 'id不能为空' },
        {
            validator(rule, value, callback, source, options) {
                if (!isNaN(value)) {
                    return callback()
                }
                callback({ message: 'id只能为数字' })
            }
        }
    ]
}